package box.mantianx.dao.lmpl;

import box.mantianx.dao.UserMapper;
import box.mantianx.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Component;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author starrysky
 * @title: UserMapperDaoSupport
 * @projectName spring_ma
 * @description: TODO
 * @date 2021/2/322:23
 */
@Component("userMapper2")
public class UserMapperDaoSupport extends SqlSessionDaoSupport implements UserMapper {
    @Override
    public CopyOnWriteArrayList<User> getUser() {
        return getSqlSession().getMapper(UserMapper.class).getUser();
    }

    @Override
    public int insertUser(Long id, String name, String pwd) {
        return 0;
    }
}
